package com.zhejiangzhengyuan.municipal_common.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.sql.Timestamp;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author linju
 * @since 2019-12-16
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="InspectionTasks对象", description="")
public class InspectionTasks extends Model<InspectionTasks> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "自增主键")
    @TableId(value = "id",type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "巡检周期")
    private Long inspectionCycleNumber;

    @ApiModelProperty(value = "巡检周期单位")
    private String inspectionCycleType;

    @ApiModelProperty(value = "任务开始时间")
    private Timestamp startTime;

    @ApiModelProperty(value = "任务结束时间")
    private Timestamp endTime;

    @ApiModelProperty(value = "巡检任务标题")
    private String title;

    @ApiModelProperty(value = "巡检任务内容")
    private String context;

    @ApiModelProperty(value = "巡检类型")
    private String type;

    @ApiModelProperty(value = "周期执行时间")
    private Timestamp cycleExecuteTime;

    @ApiModelProperty(value = "即时执行时间")
    private Timestamp immediatelyExecuteTime;

    @ApiModelProperty(value = "上报时间")
    private Timestamp reportTime;
    @ApiModelProperty(value = "任务状态")
    private String status;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
